package com.kksoft.android.xiaoliaobaike.fetcher.thread;

import android.os.Handler;
import android.os.Message;

import com.kksoft.android.xiaoliaobaike.Const;

public class FetchSeriesPageRangeThread extends FetchSeriesThread {

	public FetchSeriesPageRangeThread(Handler seriesHandler) {
		super(seriesHandler, null);
	}

	public void run() {
		int[] parsePageRange = { 0, 0 };
		try {
			parsePageRange = fetchPageRange();
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			// 获取数据
			Message toSend = seriesHandler.obtainMessage(Const.MSG_SERIES_PAGE_RANGE);
			toSend.arg1 = parsePageRange[0];
			toSend.arg2 = parsePageRange[1];
			seriesHandler.sendMessage(toSend);
		}
	}
}